package com.StarStudio.Service;

import com.ruoyi.common.core.Entity.Goods;
import com.ruoyi.common.core.Entity.GoodsChooseResult;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface GoodsService {
    public List<Goods> findGoodsList(Goods goods);
    public void DeleteGoodsById(long id);
    public void addGoods(Goods goods);
    public void updateGoods(Goods goods);
    public Goods findByGoods_id(long id);
    public long findAllRecordNumber();
    public Goods findByGoods_Item_Id(long goods_item_id);

    List<GoodsChooseResult> getGoodsChooseResultList();

    int findStockByGoodsId(long goodsId);

    void updateGoodsStockById(long goodsId,int stock);

    int findGoodsPriceByGoodsId(long goods_id);
}
